---
title: AWSBedrockAnthropicMessagesStream
description: Learn to use AWSBedrockAnthropicMessagesStream helper function in your application.
---

# `AWSBedrockAnthropicMessagesStream`

<Note type="warning">
  AWSBedrockAnthropicMessagesStream is part of the [legacy AWS Bedrock
  integration](/providers/legacy-providers/aws-bedrock). It is not compatible
  with the AI SDK 3.1 functions.
</Note>

The AWS Bedrock stream functions are utilties that transform the outputs from the AWS Bedrock API into a ReadableStream. It uses AIStream under the hood and handle parsing Bedrock's response.

## Import

### React

<Snippet
  text={`import { AWSBedrockAnthropicMessagesStream } from "ai"`}
  prompt={false}
/>

<ReferenceTable packageName="streams" functionName="AWSBedrockMessagesStream" />
